
//
//  UIImageView+Extend.swift
//  KyTV
//
//  Created by fangyukui on 2017/11/26.
//  Copyright © 2017年 fangyukui. All rights reserved.
//

import UIKit
import Kingfisher

extension UIImageView{
    func setImage(_ URLString : String?, _ placeHolderName : String?){
        guard let URLString = URLString,let placeHolderName = placeHolderName else {
            return
        }
        kf.setImage(with: URL.init(string: URLString), placeholder: UIImage(named: placeHolderName), options: nil, progressBlock: nil, completionHandler: nil)
        
        
    }
    
}
